public class dog {
    String name;
    int age;
    double weight;

    public void say() {
        System.out.println("狗的名字是" + name + " " + "狗的年龄是" + age + " " + "狗的体重是" + weight);
    }
}